<template>
  <a-input v-model:value="value" :placeholder="placeholder" ref="eleRef"></a-input>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { useComponentFunction } from "../../hooks/useComponent";
const value = ref("");
const placeholder = ref("请输入");

function getValue() {
  return value.value;
}
const [eleRef, exposeFunction] = useComponentFunction({ getValue });
defineExpose(exposeFunction);
</script>
